#include <jni.h>
#include <string>
#include <stdio.h>

extern "C" {
#include <libavcodec/avcodec.h>
#include <rtmp.h>
}

extern "C" {
extern "C" JNIEXPORT jstring JNICALL
Java_com_example_ffmpegjni_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    RTMP_Alloc();
    return env->NewStringUTF(avcodec_configuration());
//    return env->NewStringUTF(hello.c_str());
}
}